ARMEdit: HPC Services

HPC_ARMEDIT_FOPEN

HPC_ARMEDIT_FOPEN
(HPC &0105:&0007)
Open a RISC OS file

Data sent:0HPC service ID = &0105
+2reason code = &0007
+4

Data returned:0return code
+4

Use: Open a RISC OS file. This is automatically closed when the PC is shutdown or reset, but it is better to close it when no longer required using HPC_ARMEDIT_CLOSE. A file opened using this call should not be closed using RISC OS routines directly.

Related services:
Data sent: Offset Size Description 0 2 HPC service ID. 2 2 Reason code = &0007. 4 4 -1 to open existing file, or initial size of file to create a new one. 8 4 Non-zero to automatically delete file when closed. 12 n Name of file to open. Data returned: Offset Size Description 0 4 Return code. 4 4 RISC OS file handle.
[Contents] [Up] Copyright © Alexander Thoukydides, 2001